<template>
    <div>
        <div class="i-layout-page-header">
            <PageHeader title="基本信息" hidden-breadcrumb />
        </div>
        <Card :bordered="false" dis-hover class="ivu-mt i-table-no-border">
             <DescriptionList title="基本信息" :col="1">
                 <Description term="姓名：">{{data.users[0].nickName}}</Description>
                 <Description term="申请人电话：">{{data.users[0].phonenumber}}</Description>
                 <Description term="物品名称：">{{data.adtrtName}}</Description>
                 <Description term="物品用途：">{{data.adtrtReson}}</Description>
                 <Description term="数量：">{{data.adtrtCount}}</Description>
                 <Description term="申请时间：">{{data.addTime}}</Description>
             </DescriptionList>
        </Card>
    </div>
</template>
<script>
    import Administrative from "@/api/Administrative";
    export default {
        data () {
            return {
                data:''
            }
        },
        created() {
            this.getDtail();
        },
        methods:{
            getDtail(){
                Administrative.getInfoById({
                    adtrtId:this.$route.query.adtrtId
                })
                    .then(res => {
                        console.log(res.adtrtName);
                        // 返回数据
                        this.data = res;

                    })
                    .catch(err => {
                        // 异常情况
                    })
            }
        }
    }
</script>
